package com.linewow.xhyy.nihaonew.view;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.widget.RelativeLayout;

/**
 * Created by LXR on 2016/11/16.
 */
public class NoTouchRelativeLayout extends RelativeLayout {
    private String TAG="NoTouchRelativeLayout";

    public NoTouchRelativeLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public NoTouchRelativeLayout(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        Log.e(TAG,"消耗掉了");
        return true;
    }

}
